
   $(window).load(function() {
      url = window.location;
      url = url.toString();
      id_patt= /id=/g;
      patt_game = /game/g;
      patt_post = /post/g;
      if(id_patt.test(url)){
          id = url.split('&')[1].split('id=')[1];
          type = url.split('r=')[1].split('/')[0];
          
          //alert(id);
          dataString = 'type='+type+"&id="+id;
          $.ajax({
             type: 'post',
             url: '?r=tracking',
             data: dataString,
             dataType: "html",
             success: function(data){
                 
             }
          });
      }
      
});

